//package net.FamilyTree.configuration;
//
//import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
////import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * MyBatis分页查询插件的配置类
// */
//@Configuration
//public class PageConfiguration {
//
//    /**
//     * 配置分页查询插件
//     *
//     * @return PaginationInterceptor 分页查询插件实例
//     */
//    @Bean
//    public PaginationInterceptor paginationInterceptor() {
//        return new PaginationInterceptor();
//    }
//}
////    public PerformanceInterceptor paginationInterceptor() {
////        return new PerformanceInterceptor();
////    }
////}


package net.FamilyTree.configuration;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatis分页查询插件的配置类
 */
@Configuration
public class PageConfiguration {

    /**
     * 配置分页查询插件
     *
     * @return PaginationInterceptor 分页查询插件实例
     */
    @Bean
    public Page paginationInterceptor() {
        return new Page();
    }
}

